package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.greenleaf.dao.PdtDetailDao;
import com.greenleaf.entity.PdtDetail;
import com.greenleaf.service.PdtDetailService;
@Service("pdtDetailService")
public class PdtDetailServiceImpl implements PdtDetailService {
	@Resource
	private PdtDetailDao pdtDetailDao;

	@Override
	public List<PdtDetail> getPdtDetail(int cateId) {
		return pdtDetailDao.getPdtDetail(cateId);
	}

	@Override
	public int getTotalPdtDetail(int cateId) {
		return pdtDetailDao.getTotalPdtDetail(cateId);
	}

	@Override
	public int updatePdtDetail(PdtDetail pdtDetail) {
		return pdtDetailDao.updatePdtDetail(pdtDetail);
	}

	@Override
	public int addPdtDetail(PdtDetail pdtDetail) {
		return pdtDetailDao.addPdtDetail(pdtDetail);
	}

	@Override
	public int delPdtDetail(int dId) {
		return pdtDetailDao.delPdtDetail(dId);
	}

	@Override
	public PdtDetail getPdtDetailBypdt(PdtDetail pdtDetail) {
		return pdtDetailDao.getPdtDetailBypdt(pdtDetail);
	}

	@Override
	public List<PdtDetail> getPdtDetailByIds(List<Integer> ids) {
		return pdtDetailDao.getPdtDetailByIds(ids);
	}

}
